<template>
  <div class="left-nav">
    <ul style="padding-top:44px;">
      <li class="nav-li">
        <router-link to="/banner" linkActiveClass>
          <span class="nav-icon nav-icon1 mr5">
          </span>
          <span>首页效果</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/dollsBox" linkActiveClass>
          <span class="nav-icon nav-icon2 mr5">
          </span>
          <span>娃娃机管理</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/user" linkActiveClass>
          <span class="nav-icon nav-icon3 mr5">
          </span>
          <span>用户管理</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/rechargeBox" linkActiveClass>
          <span class="nav-icon nav-icon4 mr5">
          </span>
          <span>充值管理</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/gameRecord" linkActiveClass>
          <span class="nav-icon nav-icon5 mr5">
          </span>
          <span>游戏记录</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/order" linkActiveClass>
          <span class="nav-icon nav-icon6 mr5">
          </span>
          <span>订单管理</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/countBox" linkActiveClass>
          <span class="nav-icon nav-icon7 mr5">
          </span>
          <span>数据统计</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/setting" linkActiveClass>
          <span class="nav-icon nav-icon8 mr5">
          </span>
          <span>后台设置</span>
        </router-link>
      </li>
      <li class="nav-li">
        <router-link to="/account" linkActiveClass>
          <span class="nav-icon nav-icon9 mr5">
          </span>
          <span>账号管理</span>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    name: 'leftNav',
    data() {
      return {
        navData:[
          {
            name:'轮播图',
            to:"/",
          }
        ]
      }
    }
  }
</script>
<style scoped>
  .left-nav {
    border-right:1px solid #ccc;
    position: relative;
    z-index: 1;
    font-size: 10px;
    color: #585858;
    background-color: #f5f5f5;
    height:100%;
    position:fixed;
    width:130px;
  }
  .nav-li span{
    display: inline-block;
    line-height: 18px;
    vertical-align: middle;
    font-size:14px;
  }

  .left-nav li {
    border-bottom: 1px solid #E5E5E5;
    cursor: pointer;
    color:#585858;
    vertical-align: middle;
    font-size: 0;
  }
  .left-nav li a{
    color:#585858;
    display: block;
    padding: 10px;
  }
  .nav-icon{
    width:20px;
    height:20px;
    background: url('../../assets/images/nav-icon.png');
  }
  .nav-icon.nav-icon1{
    background-position:0 -20px;
  }
  .nav-icon.nav-icon2{
    background-position:-20px -20px;
  }
  .nav-icon.nav-icon3{
    background-position:-40px -20px;
  }
  .nav-icon.nav-icon4{
    background-position:-60px -20px;
  }
  .nav-icon.nav-icon5{
    background-position:-80px -20px;
  }
  .nav-icon.nav-icon6{
    background-position:-100px -20px;
  }
  .nav-icon.nav-icon7{
    background-position:-120px -20px;
  }
  .nav-icon.nav-icon8{
    background-position:-140px -20px;
  }
  .nav-icon.nav-icon9{
    background-position:-160px -20px;
  }

  .router-link-active .nav-icon1{
    background-position:0 0;
  }
  .router-link-active .nav-icon2{
    background-position:-20px 0;
  }
  .router-link-active .nav-icon3{
    background-position:-40px 0;
  }
  .router-link-active .nav-icon4{
    background-position:-60px 0;
  }
  .router-link-active .nav-icon5{
    background-position:-80px 0;
  }
  .router-link-active .nav-icon6{
    background-position:-100px 0;
  }
  .router-link-active .nav-icon7{
    background-position:-120px 0;
  }
  .router-link-active .nav-icon8{
    background-position:-140px 0;
  }
  .router-link-active .nav-icon9{
    background-position:-160px 0;
  }
  .router-link-active{
    background-color: #fff;
    color:#438EB9 !important;
    position: relative;
  }
</style>
